<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>碧城</title>
	<link href="css/head.css" type="text/css" rel="stylesheet">
	<link href="css/vip.css" type="text/css" rel="stylesheet">
	<link href="css/style.css" type="text/css" rel="stylesheet">
	<link href="css/tuangou.css" type="text/css" rel="stylesheet">
  <script type="text/javascript">
function orderState(obj){
	var orderstatevalue = obj.value;
	//alert(orderstatevalue);
	window.location.href = "myOrder_"+orderstatevalue+"_1.htm" ;
}

function click_cance(orderno){
	var index = document.getElementById("orderselect").options.selectedIndex;
	var orderstate = document.getElementById("orderselect").options[index].value;
	var con = window.confirm('确定取消吗?');
	if(con){		
		window.location.href = "cancel.do?method=Cancel&orderno=" + orderno + "&orderstate=" + orderstate;
	}
}
</script>
</head><body>
 

<script type="text/javascript" src="js/login.js"></script>
<script type="text/javascript">
function checkSerach(){
var productname = document.getElementById("title").value;
	if(productname == null || productname == ""){
		
		alert('请输入商品名称');
		return false;
	}	
	else{
		if(productname.replace(/\s/g,"") == ""){
			window.location.href = "menu.do?method=MenuShow";
			return false;
		}else{
			return true;
		}
	
	}
}
</script>
<link href="css/style.css" rel="stylesheet" type="text/css">
<link href="css/head.css" type="text/css" rel="stylesheet">

<#------------------------------------------------------------->
 <#include "/WEB-INF/view/header.ftl" />
<#-------------------------------------------------------------->


	<link href="css/style.css" type="text/css" rel="stylesheet">
	<link href="css/vip.css" type="text/css" rel="stylesheet">

<div class="vip_outer1">
	<div class="viphead_left"></div>
	<div class="viphead_midst1">
	   <div class="viphead_name">${Session.user.regName?if_exists}<#if Session.user.memberno?exists> [${Session.user.memberno}]</#if>的VIP专属超市</div>
	   <div class="viphead_navouter">
		<table class="viphead_nav" border="0" cellpadding="0" cellspacing="0" width="100%">
		  <tbody><tr>
			
			<td class="viphead_title1"><a href="mycollection.htm" class="viphead_link">我的收藏</a></td>
			
			
			
			<td class="viphead_title2"><a href="myProfile.htm" class="viphead_link">我的个人信息</a></td>
			
			
			<td class="viphead_title2_2"><a href="myAccount.htm" class="viphead_link">我的家庭帐本</a></td>
			
		  </tr>
		</tbody></table>
	   </div>
	</div>
	<div class="viphead_midst2"></div>
	<div class="viphead_midst3">
	   <ul>
	     <li><a href="http://b2office.com.cn/help_center_index.jsp?tableid=groupbuy&amp;linkid=groupbuy_comefrom" class="viphead_link2">什么是VIP专属超市?</a></li>
	     <li><a href="#" class="viphead_link2">如何快速建立VIP专属超市?</a></li>
	   </ul>
	</div>
	<div class="viphead_right"></div>
</div>

<div class="share_body">
  <!--我的帐户标签开始-->
  <div class="vip_labelinner">
  <table class="vip_table1" border="0" cellpadding="0" cellspacing="0">
	  <tbody><tr>
         <td class="vip_table1bgleft"></td>
         <td class="vip_table1bgmidst">
			  <table class="vip_labelinnertable1" border="0" cellpadding="0" cellspacing="0">
				  <tbody><tr>
					 <td class="vip_table1left"></td>
					 <td class="jf_red" onClick="window.location.href='myOrder.htm'">我的订单</td>
					 <td class="jf_red2" onClick="window.location.href='myAccount.htm'">帐户余额/缴费</td>
					 <td align="center">&nbsp;&nbsp;</td>
				 </tr>
			  </tbody></table>
		 
		 </td>
         <td class="vip_table1bgright"></td>
	 </tr>
  </tbody></table>
  </div>
  <!--我的帐户标签结束-->
  <div class="vip_content">
	 <table class="vip_table2" border="0" cellpadding="0" cellspacing="0" width="85%">
              <tbody><tr>
                <td align="right">
                <select id="orderselect" name="orderselect" onChange="orderState(this)">
				<option value="5" <#if orderStatus = 5> selected="selected" </#if>>全部订单</option>
				<option value="-1" <#if orderStatus = -1> selected="selected" </#if> >已经取消</option>
				<option value="0" <#if orderStatus = 0> selected="selected" </#if>  >未处理</option>
				<option value="1" <#if orderStatus = 1> selected="selected" </#if> >已确认</option>
				<option value="2" <#if orderStatus = 2> selected="selected" </#if>  >配送出库</option>
				<option value="3" <#if orderStatus = 3> selected="selected" </#if>  >已到门店</option>				
				<option value="4" <#if orderStatus = 4> selected="selected" </#if> >已完成</option>																				
				</select> 
				</td>
              </tr>
          </tbody></table>
	    <table class="plist_table2" bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="1" width="85%" height="30">
          <tbody><tr>
            <td class="plist_title4_2" align="center" bgcolor="#fcdbba" valign="middle" width="18%" height="25">订单号</td>
            <td class="plist_title4_2" align="center" bgcolor="#fcdbba" valign="middle" width="24%">订单时间</td>
            <td class="plist_title4_2" align="center" bgcolor="#fcdbba" valign="middle" width="15%">订单状态</td>
            <td class="plist_title4_2" align="center" bgcolor="#fcdbba" valign="middle" width="21%">订单金额(￥) </td>
            <td class="plist_title4_2" align="center" bgcolor="#fcdbba" valign="middle" width="11%">查看详情</td>
            <td class="plist_title4_2" align="center" bgcolor="#fcdbba" valign="middle" width="11%">操作</td>
          </tr>
          <#list listOrder as listOrder>
           <tr>
            <td align="center">${listOrder.orderId}</td>
            <td align="center">${listOrder.orderDate}</td>
            <td align="center">
            <#if orderStatus = -1>
            已经取消
            <#elseif listOrder.orderStatus = 0>
            未处理
            <#elseif listOrder.orderStatus = 1>
            已确认
            <#elseif listOrder.orderStatus = 2>
            配送出货
            <#elseif listOrder.orderStatus = 3>
            已到门店
            <#elseif listOrder.orderStatus = 4>
            已完成
            </#if>
            
            </td>
            <td align="center">${listOrder.b2hamt}</td>
            <td align="center"><a href="viewOrderDetail.do?orderId=${listOrder.orderId}" target="_bank">查看详情</a></td>
            <td>
            <#if listOrder.orderStatus = 0>
            <a href="cancelOrder.do?orderId=${listOrder.orderId}">取消</a>
            </#if>
            </td>
          	</tr>
          	</#list>
          	<tr bgcolor="#fcdbba">
	            <td colspan="6" align="center">
				<table width="100%" border="0" cellpadding="0" cellspacing="1">
                    <tr>
                      <td></td>
                      <td width="15%">共<b>${totalRecordNum}</b>份订单</td>
                      <td width="15%"><#if totalRecordNum != 0>一共<b>${totalPageNum}</b>页&nbsp;&nbsp;当前第<b>${curPageNum}</b>页</#if></td>
                      <td width="11%">
                      <#if (curPageNum >1)> 
                      <a href="myOrder_${orderStatus}_${curPageNum-1}.htm">上一页</a>
                      </#if>&nbsp;&nbsp;
                      <#if (curPageNum<totalPageNum) >
                      <a href="myOrder_${orderStatus}_${curPageNum+1}.htm">下一页</a> 
                      </#if>
                      </td>
                      <td width="11%"></td>
                    </tr>
                  </table>
				</td>
            </tr>
        </tbody>
        </table>
  </div>
  </div>
  <!--我的帐户外div结束-->

 
<link href="css/style.css" type="text/css" rel="stylesheet">
<link href="css/foot.css" type="text/css" rel="stylesheet">

<div class="foot_outer1">
  <div class="foot02"></div>
  <div class="foot02"></div>
  <div class="foot02"></div>
  <div class="foot02"></div>
  <div class="foot03"></div>
</div>

<#------------------------------ include file  -------------------------------------------->
<#include "/WEB-INF/view/footer.ftl" />
<#------------------------------  include file  ------------------------------------------->

</body></html>